價格:免費
更新日期:2017-02-08
檔案大小:1.7M
目前版本:1.1
版本需求:Android 4.0.3 以上版本
官方網站:http://alimuzaffar.com
Email:ali@muzaffar.me
聯絡地址:隱私權政策
Demo of burst capturing images with camera API using CameraPreview.
The app captures the Camera Preview on a background handler thread.
It then performs the following actions in a threadpool.
* Converted from YUV `byte[]` to RGB `int[]`.
* Converted from RGB `int[]` to `Bitmap`.
* Bitmap is rotated if needed to fix orientation.
* A Thumbnail size Bitmap is made for displaying.
* Full size bitmap is written to disk as a Jpeg.
* JPEG image is uploaded to a server (mock upload, does not really upload anything).
Source code for the app available at: https://github.com/alphamu/ThreadPoolWithCameraPreview
Write-up on the code available at: https://medium.com/@ali.muzaffar/using-concurrency-and-speed-and-performance-on-android-d00ab4c5c8e3